
kafkaRoot=/home/xiechao/tem/kafka_2.12-1.0.0/
cd ${kafkaRoot}
pwd
./bin/zookeeper-server-start.sh ./config/zookeeper.properties > /dev/null &
./bin/kafka-server-start.sh ./config/server.properties > /dev/null &
sleep 2
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic acResp
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 2 --topic acReq

./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic cfResp
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic cfReq
jobs